package com.feng.service;

import com.feng.dao.BookDao;
import com.feng.entity.Book;
import com.feng.util.db.Page;

public class ServletProduct {
	BookDao dao = new BookDao();
	public Page<Book> findByPageNum(int pageNum) {
		Page<Book> page = dao.findBypageNum(pageNum);
		return page;
	}
	public void save(Book book) {
		dao.save(book);
	}
	public Book findById(String id) {
		return dao.findByBookId(id);
	}
	public void update(Book book) {
		dao.update(book);
	}
	public void delete(String id) {
		dao.delete(id);
	}

	
}
